﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;


namespace KingRoad.EPM.SafetyManagementEntity.Model
{
    /// <summary> 
    /// 文件生成时间 2017/2/13 18:20:56
    /// </summary> 
    [Serializable]
    [ModelMap("Scm_CostActual", new string[] { "Ca_ID" })]
    public class ScmCostactualInfo : BaseEntity
    {
        public ScmCostactualInfo()
        {

        }
        
        
        private string _caId;
        /// <summary>
        /// 计划子表ID
        /// </summary>
        [ColumnMap("Ca_ID", System.Data.DbType.String)]
        public string Ca_ID
        {
            get {return _caId;}
            set
            {
                if (object.Equals(this._caId, value) != true)
                {
                    this._caId = value;
                    this.RaisePropertyChanged("Ca_ID");
                }
            }
        }
        
        
        private string _camId;
        /// <summary>
        /// 费用使用ID
        /// </summary>
        [ColumnMap("Cam_ID", System.Data.DbType.String)]
        public string Cam_ID
        {
            get {return _camId;}
            set
            {
                if (object.Equals(this._camId, value) != true)
                {
                    this._camId = value;
                    this.RaisePropertyChanged("Cam_ID");
                }
            }
        }
        
        
        private string _caItem;
        /// <summary>
        /// 凭证名目
        /// </summary>
        [ColumnMap("Ca_Item", System.Data.DbType.String)]
        public string Ca_Item
        {
            get {return _caItem;}
            set
            {
                if (object.Equals(this._caItem, value) != true)
                {
                    this._caItem = value;
                    this.RaisePropertyChanged("Ca_Item");
                }
            }
        }
        
        
        private decimal? _caAmount;
        /// <summary>
        /// 上报金额
        /// </summary>
        [ColumnMap("Ca_Amount", System.Data.DbType.Decimal)]
        public decimal? Ca_Amount
        {
            get {return _caAmount;}
            set
            {
                if (object.Equals(this._caAmount, value) != true)
                {
                    this._caAmount = value;
                    this.RaisePropertyChanged("Ca_Amount");
                }
            }
        }
        
        
        private decimal? _caDeduct;
        /// <summary>
        /// 扣除金额
        /// </summary>
        [ColumnMap("Ca_Deduct", System.Data.DbType.Decimal)]
        public decimal? Ca_Deduct
        {
            get {return _caDeduct;}
            set
            {
                if (object.Equals(this._caDeduct, value) != true)
                {
                    this._caDeduct = value;
                    this.RaisePropertyChanged("Ca_Deduct");
                }
            }
        }
        
        
        private decimal? _caActualamount;
        /// <summary>
        /// 实际金额
        /// </summary>
        [ColumnMap("Ca_ActualAmount", System.Data.DbType.Decimal)]
        public decimal? Ca_ActualAmount
        {
            get {return _caActualamount;}
            set
            {
                if (object.Equals(this._caActualamount, value) != true)
                {
                    this._caActualamount = value;
                    this.RaisePropertyChanged("Ca_ActualAmount");
                }
            }
        }
        
        
        private string _caRemark;
        /// <summary>
        /// 备注
        /// </summary>
        [ColumnMap("Ca_Remark", System.Data.DbType.String)]
        public string Ca_Remark
        {
            get {return _caRemark;}
            set
            {
                if (object.Equals(this._caRemark, value) != true)
                {
                    this._caRemark = value;
                    this.RaisePropertyChanged("Ca_Remark");
                }
            }
        }
        
        
        private DateTime _caInvoicedate;
        /// <summary>
        /// 开票日期
        /// </summary>
        [ColumnMap("Ca_InvoiceDate", System.Data.DbType.DateTime)]
        public DateTime Ca_InvoiceDate
        {
            get {return _caInvoicedate;}
            set
            {
                if (object.Equals(this._caInvoicedate, value) != true)
                {
                    this._caInvoicedate = value;
                    this.RaisePropertyChanged("Ca_InvoiceDate");
                }
            }
        }
        
        
        private string _caInvoicenumb;
        /// <summary>
        /// 发票编号
        /// </summary>
        [ColumnMap("Ca_InvoiceNumb", System.Data.DbType.String)]
        public string Ca_InvoiceNumb
        {
            get {return _caInvoicenumb;}
            set
            {
                if (object.Equals(this._caInvoicenumb, value) != true)
                {
                    this._caInvoicenumb = value;
                    this.RaisePropertyChanged("Ca_InvoiceNumb");
                }
            }
        }
        
        
    }
}



